package com.sy.cloud.guess.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;

/**
 * Created by mac on 2017/11/27.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Odds implements Comparable<Odds>{
    private Integer type;
    private Integer value;

    public int compareTo( Odds o ){
        int i = this.getValue() - o.getValue();
        return i;
    }

}
